package com.markerhub.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author jsx on 2023/2/13
 **/
@Data
@TableName("goods_comment")
public class GoodsComment {

    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;

    @TableField(value = "pid")
    private String pid;

    @TableField(value = "good_id")
    private String goodId;

    @TableField(value = "creater")
    private String creater;

    @TableField(value = "create_time")
    private String createTime;

    @TableField(value = "comment")
    private String content;

    @TableField(exist = false)
    private String nickname;

    @TableField(exist = false)
    private String avatar;

    @TableField(exist = false)
    private String email;

    //为了前端
    @TableField(exist = false)
    private String create_time;

}
